$OpenBSD: patch-auto_def,v 1.4 2015/06/24 20:28:42 jturner Exp $
--- auto.def.orig	Sat May 23 07:11:31 2015
+++ auto.def	Wed Jun 24 15:01:32 2015
@@ -114,7 +114,7 @@ if {[opt-bool with-th1-hooks]} {
 
 if {[opt-bool static]} {
     # XXX: This will not work on all systems.
-    define-append EXTRA_LDFLAGS -static
+    define-append EXTRA_LDFLAGS ${STATIC}
     msg-result "Trying to link statically"
 }
 
